package com.alphaToInt
{
	import flash.display.Sprite;

	public class alphaToInt extends Sprite
	{
		var Alphabet:String = "$0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
		public function alphaToInt()
		{
		}
		public function toAlpha ($i:int):String {
			var STR:String = "666";
			
			STR = Alphabet.substr($i, 1);
			return(STR);
		}
		public function toInt ($l:String):int {
			$l.toUpperCase();
			var INT:int = 666;
			for (var k:int = 0; k < Alphabet.length; k++) {
				if($l == Alphabet.substr(k,1)) {
					INT = k;
				}
			}
			return(INT);
		}
	}
}